package com.ruoyi.framework.shiro.token;

import org.apache.shiro.authc.RememberMeAuthenticationToken;

public class OauthToken implements RememberMeAuthenticationToken {
    private static final long serialVersionUID = 8587329689973009598L;

    public OauthToken(String userId){
        this.userId = userId;
    }
    private String userId = null;

    private boolean isRememberMe = false;

    public Object getPrincipal() {
        return this.userId;
    }

    public Object getCredentials() {
        return this.userId;
    }

    public boolean isRememberMe() {
        return this.isRememberMe;
    }

    public void setRememberMe(boolean isRememberMe) {
        this.isRememberMe = isRememberMe;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
}
